<template>
  <div id="app">
    <router-view v-if="isRouterAlive"></router-view>
  </div>
</template>

<script>

export default {
  name: "App",
    data(){
      return{
          isRouterAlive:true
      }
    },
mounted(){
  
},
    provide(){
      return{
          reload:this.reload
      }
    },
  methods:{
    reload(){
        this.isRouterAlive=false;
        this.$nextTick(function(){
            this.isRouterAlive=true;
        })
    }
  }
};
</script>


<style>
@import "./assets/css/public.css";
.header{
  background: #06d039 !important;
}
.van-nav-bar {
  background: #56E519 !important;
}
.van-nav-bar__title {
  color: #fff !important;
}
.van-nav-bar__text {
  color: rgba(255, 255, 255, 0.7) !important;
}
.van-nav-bar .van-icon {
  color: rgba(255, 255, 255, 0.7) !important;
}
.van-pull-refresh{
  overflow: visible !important;
}
</style>
